public class demo2 {
    public static void Add(int studentNumber [],int age[]){
        for (int i = 0; i < 3; i++) {
            if (studentNumber[i]==2){
                age[i]+=1;
            }
        }
    }
}
